package tech.dongliang.system.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import tech.dongliang.common.model.Tree;
import tech.dongliang.system.model.SysDept;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author xdzhang
 * @since 2019-01-18
 */
public interface ISysDeptService extends IService<SysDept> {
    List<SysDept> list(QueryWrapper<SysDept> queryWrapper) throws Exception;

    Tree<SysDept> getTree() throws Exception;

    int remove(Integer deptId) throws Exception;

    int childCount(Integer deptId) throws Exception;

    int getDeptUserNumber(Integer deptId) throws Exception;

}
